package com.hoshiibuy.sys.permission.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统组织
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysOrganization对象", description = "系统组织")
public class SysOrganization extends Model<SysOrganization> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "ID")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "saas平台ID")
	private Long platformid;

	@ApiModelProperty(value = "所属上级")
	private Long pid;

	@ApiModelProperty(value = "组织名称")
	private String name;

	@ApiModelProperty(value = "组织描述")
	private String description;

	@ApiModelProperty(value = "电话")
	private String telphone;

	@ApiModelProperty(value = "传真")
	private String fax;

	@ApiModelProperty(value = "地址")
	private String address;

	@ApiModelProperty(value = "负责人")
	private String charge;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createdtime;

	@ApiModelProperty(value = "创建人")
	private String createdby;

	@ApiModelProperty(value = "修改时间")
	private LocalDateTime modifiedtime;

	@ApiModelProperty(value = "修改人")
	private String modifiedby;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCharge() {
		return charge;
	}

	public void setCharge(String charge) {
		this.charge = charge;
	}

	public LocalDateTime getCreatedtime() {
		return createdtime;
	}

	public void setCreatedtime(LocalDateTime createdtime) {
		this.createdtime = createdtime;
	}

	public String getCreatedby() {
		return createdby;
	}

	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}

	public LocalDateTime getModifiedtime() {
		return modifiedtime;
	}

	public void setModifiedtime(LocalDateTime modifiedtime) {
		this.modifiedtime = modifiedtime;
	}

	public String getModifiedby() {
		return modifiedby;
	}

	public void setModifiedby(String modifiedby) {
		this.modifiedby = modifiedby;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
